package com.example.leetcode.search;

import com.example.leetcode.search.comon.SearchUtils;

class Solution162 {
    public int findPeakElement(int[] nums) {
        return SearchUtils.findPeakElement(nums);
    }
}

public class leetcode162 {
    public static void main(String[] args) {
        Solution162 solution162 = new Solution162();
        int[] nums = {1, 2, 1, 3, 5, 6, 4};
        int[] nums1 = {1, 2, 3, 1};
        int[] nums2 = {1, 2, 3};
        int[] nums3 = {3, 1};
        int[] nums4 = {1, 2};
        int[] nums5 = {6, 5, 4, 3, 2, 3, 2};
        int[] nums6 = {3, 1, 2};
//        System.out.println(solution162.findPeakElement(nums));
//        System.out.println(solution162.findPeakElement(nums1));
//        System.out.println(solution162.findPeakElement(nums2));
//        System.out.println(solution162.findPeakElement(nums3));
//        System.out.println(solution162.findPeakElement(nums4));
//        System.out.println(solution162.findPeakElement(nums5));
        System.out.println(solution162.findPeakElement(nums6));
    }
}
